package com.gsoe.problem.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 题目表
 * </p>
 *
 * @author xiaoma
 * @since 2024-10-27
 */
@Getter
@Setter
public class Problem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 题目id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 题目类型：1:单选 2:填空 3:判断 4:多选 5:大题
     */
    private Integer type;


    /**
     * 题目描述
     */
    private String problemDescribe;

    private String problemCode;

    private String codeLanguage;

    /**
     * 解析
     */
    private String analysis;

    /**
     * 难度，1:eazy 2:medium 3、hard
     */
    private Integer difficulty;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    /**
     * 修改的用户名
     */
    @TableField(fill = FieldFill.UPDATE)
    private Integer updateUserName;
    /**
     * 是否公开
     */
    private boolean visible;

    private boolean deleted;
}
